package com.demo.activityservicedemo.threadpool

import android.util.Log
import java.util.concurrent.ArrayBlockingQueue
import java.util.concurrent.ThreadPoolExecutor
import java.util.concurrent.TimeUnit

/**
 * Created by zhangyuncai on 2024/6/26.
 */
object ThreadPoolManager {
   private val executor=ThreadPoolExecutor(10,20,1,TimeUnit.SECONDS,ArrayBlockingQueue<Runnable>(10))

    fun execute(run:Runnable){
        executor.execute(run)
        Log.e("test","execute")
    }
}